<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* .box{
            width: 200px;
            height: 100px;
            margin: 30px auto;
            background: orangered;
            transform: skewX(-45deg);
         */
         .xbox{
            line-height: 100px;
            text-align: center;
            /* transform: skewX(45deg); */
        } 

        .box{
            position: relative;
            width: 200px;
            height: 100px;
            
        }
        .box::before{
            width: 200px;
            height: 100px;
            content: "";
            position: absolute;
            top: 0;right: 0;left: 0;right: 0;
            z-index: -1;
            background: #58a;
            transform: skewX(45deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="xbox">
            click me
        </div>
    </div>
</body>
</html>